<template>
  <div class="goods-list">
    <goodsitem v-for="(item,index) in goods" :goodsitem="item" :key="index"/>
  </div>
</template>

<script>
import goodsitem from './goodsListItem.vue'
  export default {
    props:{
      goods:{
        type:Array,
        default(){
          return []
        }
      }
    },
    components:{
      goodsitem
    },
  }
</script>

<style>
  .goods-list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2%;
  }
</style>
